<?php
class Pageley_Domain_Attribute_File extends Pageley_Domain_Attribute_Basic {
    
    private $fileManager;
    
	public function __construct($name, $fileManager, $validators = null) {
        parent::__construct($name, $validators, new Pageley_Serializer_Converter_File($this, $fileManager));
        $this->fileManager = $fileManager;
    }
    
    public function newProperty($entity) {
        return new Pageley_Domain_FileProperty($this->fileManager);
    }
}